home *** CD-ROM | disk | FTP | other *** search
- On 23-May-97, Joona I Palaste wrote:
- >On Fri, 23 May 1997, James Brown wrote:
-
- >> The subject said it all...
- >> Is there a way to do Isometric Maps in amos??
- >>
- >> Thanks in advance,
- >> Amigo
-
- >There isn't one as a standard, but it can be created with a little
- >programming ingenuity (sp?). One method, which I intend to use someday,
-
- It can certainly be done! It is VERY easy to set up a routine to redraw the
- entire screen, but if you want to update only parts it gets a little tougher.
- My map editor allows the creation of isometric maps, and as with all other
- types of map, it includes the facility to write the sourcecode to display it.
- Anyway, to draw an entire screenful of isometric tiles:
-
- 1. Draw them in a paint package or whatever.
- 2. Cut them out as icons (make sure your background colour is 0)
- 3. Use the `Set Icon Mask' command from AMOS (Use a loop to mask all the
- tiles)
- 4. Set up a for next loop, to decrement half of Y for each X.
- E.G: This routine draws a 10x10 map on the screen (using a highly inefficient
- array, but you get the picture)
-
- For Y=0 To 9
- For X=0 To 9
- Paste Icon X*8-(Y mod 2)*8,Y*8+X*8,Tile(X,Y)
- Next X
- Next Y
-
- Don't have the source to hand, but I'm pretty sure that is the basic way to do
- it.
-
- To update just a bit of the screen requires another screen and nine draw
- operations (or alpha-channel masking, which AMOS doesn't have). It is too
- complex to explain here.
-
- --
- &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
- & #### ## # ## ## # # &
- & # # # # # # # # ## # -= S O F T W A R E =- &
- & #### #### # # # # ## # &
- & # # # # # # # # # ## falcons@ihug.co.nz &
- & # # # #### ## ## # # &
- & &
- & Laurie Curwood http://www.geocities.com/siliconvalley/lakes/6291/ &
- &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
-
-
-